<template>
  <div class="shadow-container">

    <div class="line"></div>
    <!-- 头部区域 -->
    <div class="shadow-header">
      <div class="shadow-header-left">
        <slot name="header-left">
          <!-- 默认左侧内容 -->
         
        </slot>
      </div>
      <div class="shadow-header-right">
        <slot name="header-right">
          
        </slot>
      </div>
    </div>
    
    <!-- 内容插槽 -->
    <slot />
  </div>
</template>

<script setup>
</script>

<style lang="scss" scoped>
.shadow-container {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 20px auto ;
  position: relative;

  .line{
    display: inline-block;
    width: 80px;
    height: 3px;
    background-color: #126983;
    position: absolute;
    top: 0;
    left: 16px;
  }


// &::before {
//   content: '';
//   width: 57px;
//   height: 57px;
//   background: url('/static/Vector.png') no-repeat center/100%;
//   background-size: contain;
//   position: absolute;
//   left: 0;
//   top: 0;
// }

.shadow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.shadow-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shadow-header-right {
  display: flex;
  align-items: center;
}

.shadow-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
  margin-left: 69px;
}

.shadow-update-time {
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

.shadow-study-plan-link {
  display: flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  
  .shadow-arrow {
    margin-left: 4px;
    font-size: 16px;
  }
  
  &:hover {
    color: #409EFF;
    
    .shadow-arrow {
      color: #409EFF;
    }
  }
}
}

</style>